package com.carol.lmsbe.dto;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.time.LocalDate;

/**
 * 设备报废更新请求DTO
 */
@Data
public class EquipmentScrapUpdateRequest {

    @NotNull(message = "报废记录ID不能为空")
    private Long id;

    @NotNull(message = "报废日期不能为空")
    private LocalDate scrapDate;

    @NotBlank(message = "报废原因不能为空")
    private String reason;

    @NotNull(message = "处理人ID不能为空")
    private Long handlerId;
}
